package com.aefottt.struggle_star.activity;

import android.content.Intent;
import android.os.Handler;

import com.aefottt.struggle_star.R;
import com.aefottt.struggle_star.base.BaseActivity;

public class SplashActivity extends BaseActivity {

    @Override
    protected int getLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    protected boolean isFullScreenMode() {
        return true;
    }

    @Override
    protected void initEvent() {
        super.initEvent();
        new Handler().postDelayed(() -> {
            startActivity(new Intent(SplashActivity.this, MainWrapperActivity.class));
            overridePendingTransition(0, R.anim.anim_splash);
            finish();
        }, 500);
    }
}